chore(tooling): refresh managed config + source credentials from env#511
Merged
Conversation
Items 1/3/6/7 of the fleet refresh (epic mq-rest-admin-project/.github#14): marketplace -> vergil-claude-plugin; embed canonical CLAUDE.md template (+ vrg-docker-run -> vrg-container-run); ignore .vergil/; cd.yml release uses secrets: inherit (fixes CD startup_failure). Hook guard (item 2) already landed via #509. audit COMPLIANT; vrg-validate passes. Refs #510.
Updated CodeQL/Semgrep rulesets flag hard-coded credentials. Remove all
hard-coded password literals from test and example code:
- tests/pymqrest/{test_auth,test_session,test_ensure,test_sync}.py:
TEST_PASSWORD now reads MQ_TEST_PASSWORD from the env (defaults empty);
mock transports ignore the value and assertions compare against the
same constant.
- examples/*.py __main__ blocks: require MQ_ADMIN_PASSWORD from the env
instead of defaulting to a hard-coded "mqadmin".
vrg-validate (incl. 100% coverage) passes. Refs #510.
Semgrep python.lang.security.unverified-ssl-context flagged ssl._create_unverified_context() in the archived MQSC doc-extraction scripts. They fetch public IBM docs (https://www.ibm.com/docs, valid certs), so switch to ssl.create_default_context() — verification works and the insecure context is removed. Scripts are archived/not run in CI; change is static-clean for the scanner and more correct if re-run. Refs #510.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
Issue Linkage
Notes